<?php

	/**
	* Classe du projet : gbAnalytics
	*
	* @author HAEHNEL Jonathan
	* @date 30/09/2012
	* @copy Application libre open-source sous licence GPL (GNU General Public License)
	*/

	/* Inclusion */
	define('__ROOT__', dirname(dirname(__FILE__)).'/gbAnalytics'); //Path d'inclusion (attention)
	include( __ROOT__ . "/gbAnalytics.conf.php");
	include( __ROOT__ . "/libs/PHPCrawler.class.php");
	include( __ROOT__ . "/class/gbCrawler.class.php");
	include( __ROOT__ ."/class/gbDatabase.class.php");
	include( __ROOT__ ."/class/gbCorporate.class.php");
	
	/* Suppression des erreurs NOTICE (html non-valide) */
	error_reporting(0);
	
	/* Main */
	$crawler = new gbCrawler(); 
	$crawler->initCrawler(); // Initialisation du Crawler
	$crawler->initDatabase(); // Chargement des anciens enregistrement
	
	$crawler->go(); // Lancement du crawler
	$crawler->finish(); // Post-traitement et enregistrement
	
?>
